package com.crazypos.pojo.bo;

import lombok.Data;

import javax.validation.constraints.Email;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

@Data
public class UserRegisterBO {

    @NotNull(message = "账号不能为空")
    @Min(value = 6,message = "账号长度不能小于6位")
    private String account;

    @NotNull(message = "密码不能为空")
    @Min(value = 6,message = "密码长度不能小于6位")
    private String password;

    @NotNull(message = "确认密码不能为空")
    @Min(value = 6,message = "密码长度不能小于6位")
    private String confirmPassword;

    @Email(message = "请输入正确的邮箱")
    @NotNull(message = "邮箱不能为空")
    private String email;

}
